/*

Author   : chaos

FileName : cun_arr2.cpp

Date     : 09/08/17 11:11:46

*/
#include <iostream>
using namespace std;

void prn_arr(int *arr,int rol ,int col);

int main(void)
{
    int array[][3] = {{1,2,3},{4,5,6}};

    prn_arr(array[0],2,3);


    return 0;
}


void prn_arr(int *arr,int rol ,int col){
    int i , j;

    for (i = 0; i < rol ;i++){
        for (j=0 ; j <col ; j++)
            cout << "array[" << i << "][" << j <<"]=" << arr[i*col+j] << endl;
    }
}
